package com.itheima.system;

public class Test2 {
    public static void main(String[] args) {
        //选取武林盟主.张三丰,张无忌,灭绝,周芷若,大胸妹
        String[] names = {"张三丰","张无忌","灭绝","周芷若","大胸妹"};
       int a =(int) (Math.ceil((Math.random() * ( names.length + 1))));//这一步取出来的是随机数0到5之间
        System.out.println(a);
    }
}
